package com.huaxia.controller.A_PV;

import com.huaxia.service.A_PV.PVService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author wangli 爱我华夏，爱我中华！
 * @date 2020/10/22 9:48
 */
@RestController
@RequestMapping("/pv")
public class PVController {

    @Autowired
    private PVService pvService;

    @GetMapping("addPv")
    public void addPv(){
        pvService.addPv();
    }

    @GetMapping("findPv")
    public Integer findPV(HttpServletRequest request){
        return pvService.findPv();
    }

}
